%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

%% OTP版本号检测
{minimum_otp_vsn, "19"}.

{plugins, [rebar3_appup_plugin]}.

{provider_hooks, [
    {pre, [{tar, {appup, tar}}]},
    {post, [{compile, {appup, compile}},
            {clean, {appup, clean}}]}
]}.
%%
{erl_opts, [
            debug_info,
            warn_export_all,
            warn_unused_import,
            warn_unused_vars, 
            nowarn_shadow_vars,
            warnings_as_errors,
            {parse_transform, lager_transform},
            {src_dirs, ["src"]}
            ]}.

%%% gitos
{deps, [  ]}.


%% rebar3
{xref_warnings, true}.
{xref_checks,
  [ undefined_function_calls
  , locals_not_used
  , deprecated_function_calls
  , deprecated_functions
  ]
}.


{relx, [{release, {yangan , "0.1.0"},
         [yangan, sasl]},
        {dev_mode, false},
        {include_src, false},
        {include_erts, true},
        {system_libs, true},
        {extended_start_script, true},
        {sys_config, "config/sys.config"},
        {vm_args, "config/vm.args"}
]}.

{clean_files, ["erl_crash.dump", "rebar3.crashdump", "rebar.lock"]}.